package com.mentaleye.biz;

import java.util.List;

import com.mentaleye.bean.DormitoryStudentBean;
import com.mentaleye.dal.model.DormitoryStudentExample;
import com.mentaleye.util.CommonPage;
import com.mentaleye.util.CommonResult;

public interface DormitoryStudentBiz {
	/**
	 * 
	 * @param dormitoryBean 传入宿舍对象，根据需求判断是添加或者修改
	 * @return  返回操作成功或操作失败
	 */
	public CommonResult editDormitoryStudent(DormitoryStudentBean dormitoryStudentBean);
	/**
	 * 传入宿舍集合主键
	 * @return  返回操作成功或操作失败
	 */
	public CommonResult removeDormitoryStudent(Integer stuId,Integer dorId);
	/**
	 * 
	 * @return 查询所有宿舍信息
	 */
	public List<DormitoryStudentBean> getAllDirmitoryStudent(DormitoryStudentExample example);

	public List<DormitoryStudentBean> queryDormitoryRelateStudentById(Integer id);
	
	public int queryStudentCountByDorId(Integer dorId);
	
	public DormitoryStudentBean queryDormitoryRelateStudentByStuId(Integer stuId);
	
	public CommonResult removeDormitoryStudentByStatus(Integer stuId,Integer  status);
	/**
	 * 学生关联宿舍，分页查询
	 * @param commonPage
	 */
	public void queryDormitoryByPage(CommonPage commonPage);
	
	public DormitoryStudentBean queryDorStudentByStuIdAndDor(Integer stuId,Integer dorId,Integer stayStatus);
}
